<template>
  <div class="longControl">
    <div class="items" v-for="item in 4" :key="item">
      <div class="font_color_base font_align_r">
        <span class="pointer f14">详情</span>
      </div>
      <div class="device">
        <div class="left">
          <div class="deviceBg"></div>
          <div class="font_color_blue">COD设备</div>
        </div>
        <div class="right">
          <el-button type="primary" size="mini">启动</el-button>
          <el-button type="info" size="mini">停止</el-button>
        </div>
      </div>
      <div class="deviceInfo">
        <div class="item f14">
          <div class="font_color_base mr20">指令</div>
          <div>启动测量COD</div>
        </div>
        <div class="item f14">
          <div class="font_color_base mr20">执行时间</div>
          <div>2021-9-13 11:40</div>
        </div>
        <div class="item f14">
          <div class="font_color_base mr20">执行结果</div>
          <div>成功</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'LongControl'
}
</script>

<style lang="scss" scoped>
.longControl {
  width: 100%;
  height: 240px;
  padding: 10px;
  background-color: #FFFFFF;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  overflow: auto;

  .items {
    width: 300px;
    height: 200px;
    border: 2px solid #A6A6A6;
    border-radius: 10px;
    padding: 10px;
    margin-right: 30px;
    margin-bottom: 10px;

    .device {
      border-bottom: 1px solid #3C86EF;
      padding: 5px;
      display: flex;
      justify-content: space-between;

      .left {
        width: 100px;
        text-align: center;

        .deviceBg {
          width: 30px;
          height: 30px;
          border-radius: 50%;
          margin: 0 auto 5px auto;
          background-color: #9CBFF0;
        }
      }
    }
    .deviceInfo {
      padding: 10px;
      .item {
        line-height: 2;
        display: flex;
        justify-content: flex-start;
      }

    }
  }
}
</style>
